﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HCD.Entities
{
    [Table("MDT_COMMENT")]
    public class MdtComment : Entity<long>
    {
        //// <summary>
        /// 病人标识
        /// </summary>
        [Column("PATIENT_ID", TypeName = "VARCHAR(20)")]
        public string PatientId { get; set; }

        /// <summary>
        /// 就诊标识
        /// </summary>
        [Column("VISIT_ID", TypeName = "VARCHAR(20)")]
        public string VisitId { get; set; }

        /// <summary>
        /// 会诊ID
        /// </summary>
        [Column("MDT_ID", TypeName = "BIGINT")]
        public long MdtId { get; set; }

        /// <summary>
        /// 记录内容
        /// </summary>
        [Column("COMMENT", TypeName = "TEXT")]
        public string Comment { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CREATED_BY", TypeName = "VARCHAR(2)")]
        public string CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CREATED_TIME", TypeName = "DATETIME")]
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 最后变更
        /// </summary>
        [Column("UPDATED_TIME", TypeName = "TIMESTAMP(3)"), ConcurrencyCheck]
        public DateTime UpdatedTime { get; set; }
    }
}
